package study.domain.user;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.ToString;

import com.barney.support.domain.HasCreatedAndUpdatedDate;

/**
 * 사용자
 *
 * @author Barney Kim
 */
@Data
@ToString(exclude={"password"})
public class User implements Serializable, HasCreatedAndUpdatedDate {

	private static final long serialVersionUID = -1123086922264820387L;

	private Long userId;

	private String username;

	private String password;

	private String name;

	private boolean enabled;

	private Date createdDate;

	private Date updatedDate;

	public User() {
		//
	}

	public User(Long userId) {
		this.userId = userId;
	}

	public User(String username) {
		this.username = username;
	}
}
